﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

public partial class QLVB_Admin_Admin : System.Web.UI.MasterPage
{
    protected void Page_Load(object sender, EventArgs e)
    {
        //Kiem tra co dang nhap khong?
        if (Session["MaNguoiDung"] == null || Session["MaNguoiDung"].ToString() == string.Empty)
        {
            lblMaNguoiDung.Text = ".....";

            Response.Redirect("~/pHome.aspx");
        }
        else
        {
            lblMaNguoiDung.Text = Session["MaNguoiDung"].ToString();
        }
    }
    protected void lbtnDangXuat_Click(object sender, EventArgs e)
    {
        Session.Clear();

        Response.Redirect("~/pHome.aspx");
    }
}
